
import turtle

def  tree (plist,l ,a,  f):
    if l>5:
        lst =  []
        for  p in plist:
            p.forward(l)
            q = p.clone ()
            q.right (a)
            pq = p.clone()
            pq.left(a)
            lst.append(p)
            lst.append(q)
            lst.append(pq)
            # print("123")
        tree (lst,  l*f,  a,f)


def main():
    p=  turtle
    p.setup(800,600)
    p.color("green")
    p.pensize(1)

    p.left(90)
    p.penup ()
    x,y = 0,0
    p.goto (x,y)
    p.pendown ()
    t = tree([p],110,65,0.6375)
main()
